package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;

//评论回复表
@Setter@Getter
public class Reply extends BaseDomain {
    private Long commentId;//当前评论文章的id

    private Long replyId;//被回复评论id

    private Long fromUserId;//当前发表评论的用户id

    private Long toUserId;//被评论用户id

    private String contentDetail;//评论内容
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date creatTime;//回复评论的时间

    private User user;//当前文章评论回复的用户
}